package cn.zyx.config.canal;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "canal.subscribe")  // 将配置文件中的属性值注入到类的属性中
public class CanalSubscribeConfig {

    private String filter;

    private int batchSize;

}
